<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function showF() {
            window.alert("加载完成");
            var x = document.getElementById("container");
            x.innerHTML = "hello javascript";
        }
    </script>
</head>
<body onload="showF();">
    <div id="container"></div>
</body>
</html>

<script>

</script>
